<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.yaodian100.core.common.utils.ServerValue"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ include file="/taglibs.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> 	
<!-- 数字验证 -->
<script type="text/javascript" charset="UTF-8" src="<%=ServerValue.getMidContextPath()%>/js/jquery.alphanumeric.js"></script>
<link rel="stylesheet" type="text/css" media="screen" href="/css/ui.jqgrid.css" />
<script src="/js/grid.locale-en.js" type="text/javascript"></script>
<script src="/js/jquery.jqGrid.min.js" type="text/javascript" charset="UTF-8"></script>
<style type="text/css">
.msg{float:left; line-height:1em; margin:0; display:block;border:1px solid #f66;padding:2px 5px;*padding:2px 5px 1px;}
.msg.rn{background-color:#fff2f2;border-color:#f66;}
</style>
<s:if test="hasActionErrors()">
	<p><span class="msg rn"><s:actionerror/></span></p>
</s:if>
<s:actionmessage />
<h1>商品供应商修改审核 - 查询<br/>
	<div class="f-link">
		<a href="<%=ServerValue.getMidContextPath()%>/product/list.do">回商品列表页</a>
		<a href="<%=ServerValue.getMidContextPath()%>/productSupplierApprove/search.do">回商品供应商修改审核列表页</a>
	</div>
</h1>
<br/>
<table class="tb-data" width="100%">
	<tr>
		<th>商品名称(商品编号）</th>
		<td>${product.productName}(${product.productId})</td>
	</tr>			                    
  <tr>
  	<th>原供应商(供应商编号）
	  	<c-rt:if test="${empty productSupplierApprove.approveDate and not empty oldTwSupplierId}">
	  	/原台湾馆供应商(台湾馆供应商编号）
	  	</c-rt:if>  	
  	</th>
  	<td>${oldSupplierCompanyName}(${productSupplierApprove.oldSupplierId})
  	<c-rt:if test="${empty productSupplierApprove.approveDate and not empty oldTwSupplierId}">
  	/${oldTwSupplierCompanyName}(${oldTwSupplierId})
  	</c-rt:if>
  	</td>
  </tr>
  <tr>
  	<th>原成本</th>
  	<td><fmt-rt:formatNumber value="${productSupplierApprove.oldCost}" pattern="#######.0#"/></td>
  </tr>
  <tr>
  	<th>新供应商</th>
  	<td>${supplierCompanyName}(${productSupplierApprove.newSupplierId})
  	</td>
  </tr>
  <tr>
  	<th>新成本</th>
  	<td><fmt-rt:formatNumber value="${productSupplierApprove.newCost}" pattern="#######.0#"/></td>
  </tr>	
  <c-rt:if test="${not empty productSupplierApprove.newTwSupplierId}">
  <tr>
  	<th>台湾馆供应商</th>
  	<td>${twSupplierCompanyName}(${productSupplierApprove.newTwSupplierId})
  	</td>
  </tr>  
  </c-rt:if>
  <c-rt:if test="${not empty productSupplierApprove.id}">
  <tr>
  	<th>状态</th>
  	<td>${supplierApproveMenu.options[productSupplierApprove.approveStatus].name}</td>
  </tr>	  
  <tr>
  	<th>申请人</th>
  	<td>${productSupplierApprove.applyUser}</td>
  </tr>
  <tr>
  	<th>申请时间</th>
  	<td><fmt-rt:formatDate value="${productSupplierApprove.applyDate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
  </tr>
  <tr>
  	<th>审核人员</th>
  	<td>${productSupplierApprove.approveUser}</td>
  </tr>
  <tr>
  	<th>审核时间</th>
  	<td><fmt-rt:formatDate value="${productSupplierApprove.approveDate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
  </tr>  
  <tr>
  	<th>不同意原因</th>
  	<td>${productSupplierApprove.approveFailReason}</td>
  </tr>	
  <tr>
  	<th>建立者</th>
  	<td>${productSupplierApprove.createUser}</td>
  </tr>	
  <tr>
  	<th>建立日期</th>
  	<td><fmt:formatDate value="${productSupplierApprove.createDate}" pattern="yyyy-MM-dd HH:mm:ss" /></td>
  </tr>	
  <tr>
  	<th>修改者</th>
  	<td>${productSupplierApprove.modifyUser}</td>
  </tr>	
  <tr>
  	<th>修改日期</th>
  	<td><fmt:formatDate value="${productSupplierApprove.modifyDate}" pattern="yyyy-MM-dd HH:mm:ss" /></td>
  </tr>	
  </c-rt:if>
</table>
<br/><br/>
<table class="tb-1" width="100%">
	<thead>
		<tr>
			<th>日期起</th>
			<th>日期迄</th>
			<th>小标</th>
			<th>售价</th>
		</tr>
	</thead>
	<tbody>
		<c-rt:forEach items="${shelfList}" var="shelf" >
			<tr>
				<td><fmt-rt:formatDate value="${shelf.startDate}" pattern="yyyy-MM-dd HH:mm"/></td>
				<td><fmt-rt:formatDate value="${shelf.endDate}" pattern="yyyy-MM-dd HH:mm"/></td>
				<td>${shelf.promoteName}</td>
				<td><fmt-rt:formatNumber value="${shelf.shelfPrice}" pattern="######.0#"/></td>
			</tr>
		</c-rt:forEach>
	</tbody>
</table>